#include<iostream>
using namespace std;

int main()
{
	const int size = 10;
	int a[size];
	for (int i = 0; i < size; i++)
	{
		a[i] = i;
	}

	int* pb = begin(a);
	int* pe = end(a);
	while (pb != pe)
	{
		*pb = 0;
		pb++;
		cout << *pb << endl;
	}
	return 0;
}